Powershell *-inboxrule needs to "delete any rules that were previously turned off"
If I want to use PowerShell to create a new rule, or remove a specific rule, I get this request for confirmation: "Using Outlook Web App or Windows PowerShell to modify your rules will delete any rules that were previously turned off using Outlook. If you want to preserve the rules you turned off using Outlook, select "No" and use Outlook to edit your rules. Are you sure you want to proceed? [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"):" Can anyone explain why this is, and if there is a way to get around it? If I have inactive rules, that I want to keep why should I have to delete them to modify/create/delete another rule? --Gene
July 5th, 2011 12:00pm

When you create, modify, remove, enable, or disable an Inbox rule on Microsoft Exchange Server 2010, some client-side rules including disabled client-side rules and outbound rules that were created by Microsoft Outlook are removed To avoid conflicts between your rules in Outlook Web App and in Outlook, avoid modifying rules in Outlook Web App and the rules wizard of Outlook at the same time. You must decide if you want to stop creating a rule in the Outlook Web App in order to save a disabled rule in Outlook. To get around this you can use AlwaysDeleteOutlookRulesBlob when using the set-inboxrule http://technet.microsoft.com/en-us/library/dd351089.aspxSukh
Free Windows Admin Tool Kit Click here and download it now
July 5th, 2011 4:50pm

The problem is, that I don't want to delete the disabled rules. Here is the example, where I work we have multiple e-mail systems and Exchange is just one of them. We also allow people to send their e-mail outside our systems to places like Google, hotmail, aol... We are migrating to Exchange 2010. We have a web site where people can go to setup forwarding. A one-stop-shop so we don't create more tickets for how to do this. With our one-stop-shop for e-mail forwarding, people go there and all the systems get configured the way they want and there isn't a situation where mail is in some places and not others. I know, It's different, but that's the way it is. To facilitate this in Exchange, I need to be able to create a rule that forwards the e-mail, but doesn't delete disabled rules. (Example: user forwards and keeps a copy on Exchange, I want all the other rules to process, and if they ahve rules they run manually I don't want to delete those.) Again, It's straying from the "corporate" idea of e-mail, but that's the way it is. Can anybody help? Is there a way to do this with EWS? Thanks, Gene
July 6th, 2011 11:42am

I can't find anyway natively doung this with Exch 2010. You may have to develop a custom method. If you always want all emails forwarded to an account you can use set-mailbox - DeliverToMailboxAndForward,ForwardingSmtpAddress,ForwardingAddress I still dont think this will achieve what you want. Sukh
Free Windows Admin Tool Kit Click here and download it now
July 6th, 2011 5:53pm

I will look into the set-mailbox options. I hadn't seen those. When you say "I still don't think this will achieve what you want" do you mean using the set-mailbox, or developing a custom method? Can I also ask why you don't think this would work? I would still love to know why the rule commands (Powershell & OWA) are deleting enabled rules. Thanks! Gene
July 11th, 2011 10:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics